package com.aier.classes.entity;


import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Classes entity. @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "classes", catalog = "abc")
public class Classes implements java.io.Serializable {

    /**
     * 班级表
     */
    private static final long serialVersionUID = 1L;
    
    private Long cid;            //班级id
    private String cname;        //班级名称
    private Integer sid;        //学校id
    private String desinfo;        //班级信息
    private String manifesto;    //班级宣言
    private String img;            //班级主图
    private String clogo;        //班徽
    private Timestamp ctime;    //创建时间
    private Integer mesCount;   // 班级剩余短信条数
    
    //扩展
    private String tnames;        //班级的管理教师名(多个用,分隔)
    private String ctime_str;
    private int num_teacher;    //班级教师人数
    private int num_student;    //班级学生人数
    private int num_parent;        //班级家长人数
    
    private Long tid;
    
    private String appStatusClass;//权限
    
    public Classes() {
        super();
    }



    public Classes(Long cid, String cname, Integer sid, String desinfo,
            String manifesto, String img, String clogo, Timestamp ctime) {
        super();
        this.cid = cid;
        this.cname = cname;
        this.sid = sid;
        this.desinfo = desinfo;
        this.manifesto = manifesto;
        this.img = img;
        this.clogo = clogo;
        this.ctime = ctime;
    }



    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getDesinfo() {
        return desinfo;
    }

    public void setDesinfo(String desinfo) {
        this.desinfo = desinfo;
    }

    public String getManifesto() {
        return manifesto;
    }

    public void setManifesto(String manifesto) {
        this.manifesto = manifesto;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getClogo() {
        return clogo;
    }

    public void setClogo(String clogo) {
        this.clogo = clogo;
    }

    public Timestamp getCtime() {
        return ctime;
    }

    public void setCtime(Timestamp ctime) {
        this.ctime = ctime;
    }



    public String getTnames() {
        return tnames;
    }



    public void setTnames(String tnames) {
        this.tnames = tnames;
    }



    public String getCtime_str() {
        return ctime_str;
    }



    public void setCtime_str(String ctime_str) {
        this.ctime_str = ctime_str;
    }



    public int getNum_teacher() {
        return num_teacher;
    }



    public void setNum_teacher(int num_teacher) {
        this.num_teacher = num_teacher;
    }



    public int getNum_student() {
        return num_student;
    }



    public void setNum_student(int num_student) {
        this.num_student = num_student;
    }



    public int getNum_parent() {
        return num_parent;
    }



    public void setNum_parent(int num_parent) {
        this.num_parent = num_parent;
    }



    public Long getTid() {
        return tid;
    }



    public void setTid(Long tid) {
        this.tid = tid;
    }



    public Integer getMesCount() {
        return mesCount;
    }



    public void setMesCount(Integer mesCount) {
        this.mesCount = mesCount;
    }

	public String getAppStatusClass() {
		return appStatusClass;
	}
	
	public void setAppStatusClass(String appStatusClass) {
		this.appStatusClass = appStatusClass;
	}
}